const  Index = () => import("../view/layouts/Index.vue");
const  Team = () => import("../view/team/TeamPage.vue");
const  User = () => import("../view/user/UserPage.vue");
const  Search = () => import("../view/tagSearch/SearchPage.vue");
const  EditUserPage = () => import("../view/user/UserEditPage.vue");
const  List = () => import('../view/tagSearch/SearchResultPage.vue')
const  TeamAddPage = () => import("../view/team/TeamAddPage.vue");
const  TeamUpdatePage = () => import("../view/team/TeamUpdatePage.vue");
const  UserTeamCreatePage = () => import("../view/user/UserTeamCreatePage.vue");
const  UserTeamJoinPage = () => import("../view/user/UserTeamJoinPage.vue");
const  UserInfo = () => import("../view/user/UserInfo.vue");
const  UserDetailPage = () => import("@/view/user/UserDetailPage.vue");
const  TeamDetailPage = () => import("@/view/team/TeamDetailPage.vue");
const  MessageIndex = () => import("@/view/message/Index.vue");
const  UserSetPage = () => import('@/view/user/UserSetPage.vue')
const  UserBlogPage = () => import("@/view/user/UserBlogPage.vue");
const routes = [
    { path: '/home', component: Index },
    {path: '/team',name:'找队伍', component: Team},
    {path: '/team/add',name:'创建队伍', component: TeamAddPage},
    {path: '/team/update',name:'队伍更新', component: TeamUpdatePage},
    {path: '/user',name:'个人', component: User},
    {path: '/search',name:'搜索', component: Search},
    {path: '/user/edit',name:'修改个人信息',component: EditUserPage},
    {path: '/user/team/create',name:'创建的队伍',component: UserTeamCreatePage},
    {path: '/user/team/join',name:'加入的队伍',component: UserTeamJoinPage},
    {path: '/user/blog',name:'发布的帖子',component: UserBlogPage},
    {path: '/user/info',name:'个人信息',component: UserInfo},
    {path: '/user/set',name:'设置',component: UserSetPage},
    {path: '/user/list', component: List},
    {path: '/user/detail',name:'个人详情',component: UserDetailPage},
    {path: '/team/detail',name:'队伍详情',component: TeamDetailPage},
    {path: '/message',name:'消息',component: MessageIndex},
]

export default routes